# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=mkrundir
pkgver=0.1.0
pkgrel=0
pkgdesc="Create an XDG_RUNTIME_DIR"
url="https://sr.ht/~whynothugo/mkrundir/"
arch="x86_64 aarch64" # Hare
license="ISC"
makedepends="hare libcap-setcap"
source="
	mkrundir-$pkgver.tar.gz::https://git.sr.ht/~whynothugo/mkrundir/archive/v$pkgver.tar.gz
"
options="!check setcap"
builddir="$srcdir/mkrundir-v$pkgver/"

build() {
	make PREFIX=/usr mkrundir
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
2e21c41d3ae8ba952bbb2f6f271ff189e5eae8f801a536a94b31818fcd4a19217607a6751432f451cd8b96f6b9898aea3fa4b3f7279e2e54f44b8a4631bd0edc  mkrundir-0.1.0.tar.gz
"
